Skip to content

Conversation

@maheshbhatiya73
Copy link
Member

  • Add new status command for eBPF program and system monitoring
  • Support multiple output formats: table, JSON, and summary
  • Show kernel version, BPF support, and system resources
  • Display eBPF program status including kernel loading and attachment state
  • Add real-time monitoring with --watch option
  • Include detailed program metrics and performance data
  • Support filtering by program ID and status
  • Integrate with database to show eBPF program information
  • Provide comprehensive BPF system support verification

Example outputs:

  • Table format: Shows system overview with eBPF program status table
  • JSON format: Complete system and eBPF program data in structured format
  • Summary format: Concise system status overview
  • Detailed mode: Extended information for eBPF programs and system resources

Sample output:
ECLIPTA CLI ▸ System Status
┌─────────────────────────────────────────────────────────────┐ │ Kernel Version: 6.16.4-arch1-1
│ System Uptime: 0 seconds
│ CPU Cores: 4
│ Memory: 1.58 GB / 7.51 GB
└─────────────────────────────────────────────────────────────┘

BPF System Support:
BPF Filesystem: Mounted
Debug Filesystem: Mounted
CAP_SYS_ADMIN: Missing
BTF Support: Available
BPF Verifier: Not Available

Program Status Overview:
Total Programs: 3
Loaded in Kernel: 0
Active/Attached: 0

Program Details:
┌─────┬─────────────────────┬──────────┬──────────┬─────────────┐
│ ID │ Title │ Status │ Kernel │ Attached │
├─────┼─────────────────────┼──────────┼──────────┼─────────────┤
│ 6 │ test program 1 │ deactive │ ❌ │ ❌ │
│ 5 │ test program │ deactive │ ❌ │ ❌ │
│ 4 │ TC Pass Example │ deactive │ ❌ │ ❌ │
└─────┴─────────────────────┴──────────┴──────────┴─

- Add new status command for eBPF program and system monitoring
- Support multiple output formats: table, JSON, and summary
- Show kernel version, BPF support, and system resources
- Display eBPF program status including kernel loading and attachment state
- Add real-time monitoring with --watch option
- Include detailed program metrics and performance data
- Support filtering by program ID and status
- Integrate with database to show eBPF program information
- Provide comprehensive BPF system support verification

Example outputs:
- Table format: Shows system overview with eBPF program status table
- JSON format: Complete system and eBPF program data in structured format
- Summary format: Concise system status overview
- Detailed mode: Extended information for eBPF programs and system resources

Sample output:
ECLIPTA CLI ▸ System Status
┌─────────────────────────────────────────────────────────────┐
│ Kernel Version: 6.16.4-arch1-1
│ System Uptime: 0 seconds
│ CPU Cores: 4
│ Memory: 1.58 GB / 7.51 GB
└─────────────────────────────────────────────────────────────┘

BPF System Support:
  BPF Filesystem: ✅ Mounted
  Debug Filesystem: ✅ Mounted
  CAP_SYS_ADMIN: ❌ Missing
  BTF Support: ✅ Available
  BPF Verifier: ❌ Not Available

Program Status Overview:
  Total Programs: 3
  Loaded in Kernel: 0
  Active/Attached: 0

Program Details:
┌─────┬─────────────────────┬──────────┬──────────┬─────────────┐
│ ID  │ Title               │ Status   │ Kernel   │ Attached   │
├─────┼─────────────────────┼──────────┼──────────┼─────────────┤
│   6 │ test program 1      │ deactive │ ❌        │ ❌          │
│   5 │ test program        │ deactive │ ❌        │ ❌          │
│   4 │ TC Pass Example     │ deactive │ ❌        │ ❌          │
└─────┴─────────────────────┴──────────┴──────────┴─
@maheshbhatiya73 maheshbhatiya73 merged commit f254324 into main Sep 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants